package com.example.mybatisdemo.model;


import java.util.Date;
import java.util.List;

public class House {

  private Long id;
  private Integer type;
  private Integer price;
  private String  name;
  private String images;
  private Integer area;
  private Integer beds;
  private Integer baths;
  private Double  rating;
  
  private Integer roundRating = 0;
  private String  remarks;
  private String  properties;
  private String  floorPlan;
  private String  tags;
  private Date    createTime;
  private Integer cityId;
  private Integer    communityId;
  private String     address;
  
  private String     firstImg;
  
  private List<Comment> comments;

  private Comment oneComment;

  private String priceStr;
  
  private String typeStr;

  private Long userId;
  
  private boolean bookmarked;
  
  private Integer state;

  private String  sort = "time_desc";//price_desc,price_asc,time_desc




  @Override
  public String toString() {
    return "House [id=" + id + ", type=" + type + ", price=" + price + ", name=" + name
        + ", images=" + images + ", area=" + area + ", beds=" + beds + ", baths=" + baths
        + ", rating=" + rating + ", roundRating=" + roundRating + ", remarks=" + remarks
        + ", properties=" + properties + ", floorPlan=" + floorPlan + ", tags=" + tags + ", createTime=" + createTime + ", cityId=" + cityId
        + ", communityId=" + communityId + ", address=" + address + ", firstImg=" + firstImg
        + ", typeStr=" + typeStr + ", userId=" + userId  + ", bookmarked="
        + bookmarked + ", state=" + state + ", sort=" + sort + "]";
  }

}
